-- GENERATED SPELL FOR [Quel'dorei Wraith] --


function spell0_16326(pUnit, Event) --@Evasion,Self--
pUnit:FullCastSpellOnTarget(31379,pUnit)
pUnit:RegisterEvent('Sorts_16326', 10313, 1)
end

function Sorts_16326(pUnit, Event)
local choix_sorts_16326 = math.random(0, 0)
if choix_sorts_16326 == 0 then
pUnit:RegisterEvent('spell0_16326', 1, 1)
end
end

function mob16326_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16326', math.random(1500, 3000), 1)
end

function mob16326_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16326_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16326_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16326, 1, 'mob16326_Action')
RegisterUnitEvent(16326, 2, 'mob16326_Leave')
RegisterUnitEvent(16326, 3, 'mob16326_Kill')
RegisterUnitEvent(16326, 4, 'mob16326_Die')
